﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using OOS.Application.Order.Dtos;
using OOS.Application.Order.Vos;
using OOS.Core.Order;
using OOS.Core.RelyOn;

namespace OOS.Application.Order.Services.Interfaces
{
    /// <summary>
    /// 订单管理
    /// </summary>
    public interface IOrderBasicService
    {
        /// <summary>
        /// 添加订单
        /// </summary>
        /// <param name="orderBasic"></param>
        /// <returns></returns>
        Boolean InsertOrderBasic(OrderBasic orderBasic);

        /// <summary>
        /// 根据条件(订单号模糊查询，订单状态精确查询,下单时间范围查询)分页查询
        /// </summary>
        /// <param name="searchOrderVo"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        PageResponseDto<List<OrderBasicDto>> SelectOrderPageByConditions(SearchOrderVo searchOrderVo,int pageIndex, int pageSize);

        /// <summary>
        /// 根据id修改订单状态
        /// </summary>
        /// <param name="orderBasic"></param>
        /// <returns></returns>
        Boolean UpdateOrderBasicById(OrderBasic orderBasic);

        /// <summary>
        /// 根据id获取详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        OrderBasicDto SelectOrderById(int id);
    }
}
